package org.ihelpuoo.orm.objs;

import org.ihelpuoo.lang.ArrayUtils;

public class Cat
{
	private String	name;
	private String	comment;
	private int		age;
	private Food[]	foods;

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getComment()
	{
		return comment;
	}

	public void setComment(String comment)
	{
		this.comment = comment;
	}

	public int getAge()
	{
		return age;
	}

	public void setAge(int age)
	{
		this.age = age;
	}

	public Food[] getFoods()
	{
		return foods;
	}

	public void setFoods(Food[] foods)
	{
		this.foods = foods;
	}

	public void setFoods(Object[] foods)
	{
		if (null == foods)
			return;
		this.foods = new Food[foods.length];
		ArrayUtils.cast(foods,this.foods);
	}

}
